import request from '@/utils/request'

export function searchOrder(data) {
  return request({
    url: '/order/list',
    method: 'post',
    data
  })
}

export function orderCash(data) {
  return request({
    url: 'order/pay/success',
    method: 'post',
    data
  })
}

export function orderCancel(data) {
  return request({
    url: 'order/pay/cancel',
    method: 'post',
    data
  })
}

export function getSomeoneOrders(data) {
  return request({
    url: 'order/records',
    method: 'post',
    data
  })
}

/*获取出库订单查询*/
export function searchPlacing(data) {
  return request({
    url: 'placing/order/list',
    method: 'post',
    data
  })
}
/*获取出库订单商品查询*/
export function searchPlacingProducts(data) {
  return request({
    url: 'placing/order/products/list',
    method: 'post',
    data
  })
}
/*编辑出库订单*/
export function editPlacing(data) {
  return request({
    url: 'placing/order/edit',
    method: 'post',
    data
  })
}

